<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<head>
<meta name="nav" content="1" />
<meta name="acc" content="1-1" />
<title>工作任务</title>
<script type="text/javascript">
$(document).ready(function() {
	$("#planStarDate").addClass("Wate").bind("focus", function(){
	 WdatePicker({skin:'whyGreen',minDate:'1900-10-01' , dateFmt:'yyyy-MM-dd HH:mm:ss'});});
	$("#planEndDate").addClass("Wate").bind("focus", function(){
	 WdatePicker({skin:'whyGreen',minDate:'#F{$dp.$D(\'planStarDate\')}' , dateFmt:'yyyy-MM-dd HH:mm:ss'});
	 });
});
</script>
</head>
<body>
<div id="heading" class="worktask"><h6>我的任务列表</h6></div>
<div id="message"><s:actionmessage theme="custom"
	cssClass="success" /></div>
<form id="mainForm" action="${ctx }/app/worktask!myExecuteTask.action" method="get" class="yform">
<div id="filter">
			<ul>
			<li>标题：<input type="text" name="filter_LIKES_title" value="${param['filter_LIKES_title']}" /></li>
			<li>开始时间:<input type="text"  id="planStarDate" name="filter_GED_planStarDate" value="${param['filter_GED_planStarDate']}" /> </li>
 			<li>结束时间:<input type="text"  id="planEndDate"  name="filter_LED_planEndDate" value="${param['filter_LED_planEndDate']}" /> </li>
			</ul>
			<div class="type-button"><input type="button" class="reset" value="查询" onclick="search();" /></div>
		</div>
<div id="content">
<table id="contentTable">
	<tr>
		<th><a id="createDate" href="javascript:sort('createDate','asc')">序号</a></th>
		<th><a id="title" href="javascript:sort('title','asc')">标题</a></th>
		<th><a id="publisher" href="javascript:sort('publisher','asc')">发布人</a></th>
		<th><a id="planStarDate" href="javascript:sort('planStarDate','asc')">开始时间</a></th>
  		<th><a id="planEndDate" href="javascript:sort('planEndDate','asc')">结束时间</a></th>
		<th><a id="warnDate" href="javascript:sort('warnDae','asc')">提醒日期</a></th>
		<th>操作</th>
	</tr>
	<c:forEach items="${page.result}" var="worktask" varStatus="status">
		<tr>
			<td>${page.first+status.index }</td>
			<td><pt:text limit="15">${worktask.title}</pt:text></td>
			<td>${worktask.publisher}</td>
			<td><fmt:formatDate value="${worktask.planStarDate}" pattern="yyyy-MM-dd HH:mm"/></td>
			<td><fmt:formatDate value="${worktask.planEndDate}" pattern="yyyy-MM-dd HH:mm"/></td>
			<td><fmt:formatDate value="${worktask.warnDate}" pattern="yyyy-MM-dd HH:mm" /> </td>
			<td><a
				href="worktask!input.action?id=${worktask.id}">编辑</a> <a
				href="worktask!delete.action?id=${worktask.id}" onclick="return confirmDelete();">删除</a>
				<a
				href="worktask!show.action?id=${worktask.id}">查看</a>
			</td>
		</tr>
	</c:forEach>
</table>
</div>
<jsp:include page="/common/page.jsp" />
<div class="type-button"><input class="sumbit" type="button" onclick="location.href='${ctx}/app/worktask!input.action'" value="新增"/></div>
</form>
</body>

